package com.bwie.mapper;

import com.bwie.common.domain.Role;
import com.bwie.common.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: SysUserMapper
 * @Description: TODO
 * @version: v1.８.0
 * @author: 汪菲阳
 * @date: 2025/10/22 9:47
 */
@Mapper
public interface SysUserMapper {
    User selectUserByUserPhone(@Param("userPhone") User user);

    List<Role> selectRoleByUserId(@Param("userId") Integer userId);

    List<User> selectAllUser();

    void registerUser(User user);
}
